package com.zsummer.demo.spring.rabbitmq.simple;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author zsummer
 * @since 2021/12/28
 */
@Component
public class SimpleConsumer {

    @RabbitListener(queues = "hello")
    public void handler(String message) {
        System.out.println(message);
    }
}
